package net.lab1024.sa.admin.module.fabricmaterials.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.Data;

/**
 * lyy 新建表单
 *
 * @Author lyy
 * @Date 2024-11-12 22:01:35
 * @Copyright lyy
 */

@Data
public class FabricMaterialsAddForm {


    @Schema(description = "fabric_material_code", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "耗材代码不能为空")
    private String fabricMaterialCode;
    @Schema(description = "fabric_material_name", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "耗材名称不能为空")
    private String fabricMaterialName;
    @Schema(description = "fabic_material_category", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "类别不能为空")
    private Integer fabicMaterialCategory;
    @Schema(description = "quantity", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量不能为空")
    private Integer quantity;

    @Schema(description = "spec_model", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "规格不能为空")
    private String specModel;
    @Schema(description = "unit_price", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "单价不能为空")
    private int unitPrice;
    @Schema(description = "total_price", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "总价不能为空")
    private int totalPrice;

    @Schema(description = "purchase_way", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "总价不能为空")
    private String purchaseWay;

    @Schema(description = "storage_location", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "存储地点不能为空")
    private String storageLocation;


    @Schema(description = "unit", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "单价不能为空")
    private String unit;








}